<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>场次修改</title>

    <link href="/movie/web/Public/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/movie/web/Public/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/movie/web/Public/static/admin/css/layout.css" rel="stylesheet">

</head>
<body>

<!-- .row必须包含在 .container(固定宽度)或 .container-fluid(100% 宽度)中，以便为其赋予合适的排列(aligment)和内补(padding)-->
<nav class="layout-header">
    <div class="container layout-width">
        <div class="row">
            <div class="col-md-12">

                <div class="pull-left">
                    <a href="" class="logo">
                        <span class="fa fa-desktop"></span> 商户管理
                    </a>
                </div>

                <!--<div class="top-menu pull-left">
                    <ul>
                        <li>
                            <a href="<?php echo U('Index/index');?>">首页</a>
                        </li>
                        <li>
                            <a class="active" href="<?php echo U('Room/index');?>">放映厅管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Room/index');?>">放映厅列表</a>
                                <a href="<?php echo U('Room/add');?>">放映厅添加</a>
                                <a>信息修改</a>
                            </div>
                        </li>
                        <li>
                            <a class="" href="<?php echo U('Screen/index');?>">放映场次管理</a>

                            <div class="nav-child-menu">
                                <a href="<?php echo U('Screen/index');?>">场次列表</a>
                                <a href="<?php echo U('Screen/add');?>">场次新增</a>
                                <a>场次修改</a>
                            </div>
                        </li>
                    </ul>
                </div>-->

                <div class="pull-right">
                <span class="account-info">
                    <span>欢迎您: <?php echo \Home\Model\Admin::user()['username']; ?></span>
                    <a class="login-out" href="<?php echo U('Default/loginout');?>">退出</a>
                </span>

                </div>

            </div>
        </div>
    </div>
</nav>

<section class="container layout-main layout-width">
    <div class="row">
        <div class="col-md-12 display-table">

            <!--左菜单区域-->
            <div class="layout-menu">

                    <ul class="main-menu">
                        <li class="level-2 <?php if (isset($active) && $active=='room'){echo 'active';}?>">
                        <span class="menu-item"  >
                            <a class="menu-item" href="<?php echo U('Room/index');?>">
                                <i class="icon glyphicon glyphicon-th-large"></i>
                                <i class="icon pull-right"></i>
                                <span>放映厅管理</span>
                            </a>
                        </span>
                        </li>

                   <!-- <li class="level-2 active">
                        <a class="menu-item" href="<?php echo U('Room/index');?>">
                            <i class="icon"></i>
                            <i class="icon pull-right"></i>
                            <span>放映厅列表</span>
                        </a>
                    </li>

                    <li class="level-2">
                        <a class="menu-item" href="<?php echo U('Room/add');?>">
                            <i class="icon"></i>
                            <i class="icon pull-right"></i>
                            <span>放映厅添加</span>
                        </a>
                    </li>

                    <li class="level-2">
                        <a class="menu-item">
                            <i class="icon"></i>
                            <i class="icon pull-right"></i>
                            <span>信息修改</span>
                        </a>
                    </li>-->
                        <li class="level-2 <?php if (isset($active) && $active=='screen'){echo 'active';}?>">
                        <span class="menu-item"  >
                            <a class="menu-item" href="<?php echo U('screen/index');?>">
                                <i class="icon glyphicon glyphicon-th-large"></i>
                                <i class="icon pull-right"></i>
                                <span>放映场次管理</span>
                            </a>
                        </span>
                        </li>

                   <!-- <li class="level-2 active">
                        <a class="menu-item" href="<?php echo U('screen/index');?>">
                            <i class="icon"></i>
                            <i class="icon pull-right"></i>
                            <span>场次列表</span>
                        </a>
                    </li>

                    <li class="level-2">
                        <a class="menu-item" href="<?php echo U('screen/add');?>">
                            <i class="icon"></i>
                            <i class="icon pull-right"></i>
                            <span>场次新增</span>
                        </a>
                    </li>

                    <li class="level-2">
                        <a class="menu-item">
                            <i class="icon"></i>
                            <i class="icon pull-right"></i>
                            <span>场次修改</span>
                        </a>
                    </li>-->

                </ul>

            </div>
            <!-- 左菜单区域结束-->
            
    <!--右内容区域-->
    <div class="layout-content">

        <div class="page-title">场次管理</div>

        <div class="content-top">
            <ul class="top-nav">
                <li class="active"><span>修改场次信息</span></li>
            </ul>
            <div class="clearfix"></div>
        </div>


        <!--content-main start-->
        <div class="container-fluid content-main">
            <div class="row">
                <div class="col-md-12">
                    <?php if(isset($_SESSION['message'])) { $message=$_SESSION['message']; unset($_SESSION['message']); ?>
                    <div class="ui-tips bg-info">
                        <span class="icon glyphicon glyphicon-info-sign"></span>
                        <span><?php echo $message;?></span>
                    </div>
                    <?php }?>
                </div>

                    <form action="<?php echo U('updateA',['id'=>$id]);?>" class="form-horizontal" method="post" enctype="multipart/form-data">

                        <div class="form-group">
                            <label class="col-sm-2 control-label">电影名称</label>

                            <div class="col-sm-8">
                                <select name="movie_id" class="form-control">
                                    <?php foreach( $list as $key => $value ){ ?>
                                    <option value="<?php echo ($value['id']); ?>"  <?php echo $model['movie_id'] == $key+1? 'selected': ''?>    ><?php echo ($value['name']); ?></option>
                                    <?php } ?>
                                </select>
                                <span class="help-block"></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">放映厅</label>

                            <div class="col-sm-8">
                                <select name="room_id" class="form-control">
                                    <?php foreach( $room as $key => $value ){ ?>
                                    <option value="<?php echo ($value['id']); ?>"  <?php echo $model['room_id'] == $key+1 ? 'selected': ''?>    ><?php echo ($value['name']); ?></option>
                                    <?php } ?>
                                </select>
                                <span class="help-block"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">放映时间</label>
                            <div class="col-sm-8">
                                <input type="datetime-local" name="showtime" class="form-control">
                                <span class="help-block"></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">单价</label>
                            <div class="col-sm-8">
                                <input type="text" name="price" class="form-control" value="<?php echo ($model["price"]); ?>"  onfocus="abc(this)">
                                <span class="help-block"></span>
                            </div>
                        </div>
                        <script>
                            function abc(obj) {
                                $(obj).val('');
                            }
                        </script>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-8">
                                <button type="submit" class="btn btn-default">修改提交</button>
                            </div>
                        </div>
                    </form>


                </div>
            </div>

        </div>
        <!--右内容区域结束-->


            <div class="clearfix"></div>
        </div>
    </div>
</section>

<footer class="layout-footer">
    <div class="container layout-width">
        <div class="row">
            <div class="col-md-12">
                <ul class="links">
                    <li><a href="" target="_blank">关于我们</a></li>
                    <li><a href="" target="_blank">服务协议</a></li>
                    <li><a href="" target="_blank">运营规范</a></li>
                    <li><a href="" target="_blank">客服中心</a></li>
                    <li><a href="" target="_blank">在线客服</a></li>
                    <li><p class="copyright">Copyright.All Rights Reserved.</p></li>
                </ul>
            </div>
        </div>
    </div>
</footer>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="/movie/web/Public/static/ie8/html5shiv.min.js"></script>
<script src="/movie/web/Public/static/ie8/respond.min.js"></script>
<![endif]-->

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/movie/web/Public/static/jquery/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/movie/web/Public/static/bootstrap/js/bootstrap.min.js"></script>

</body>
</html>